<template>
  <div>
    <c-file-table-box
      v-model="files"
      :table-height="250"
      :editable="editable"
      type-code="ACCESS101"
      belong-model="SHOP_PATROL"
      :model-id="$route.query.id"
    />
  </div>
</template>
<script>
export default {
  name: 'Files',
  props: {

  },
  data() {
    return {
      editable: true,
      files: []
    }
  },
  created() {
    const { isDetail } = this.$route.query
    this.editable = !isDetail
  },
  methods: {
    handleSave() {
      return this.files.map(v => v.response.data)
    }
  }
}
</script>
